package face.pay.task.card;

import face.pay.task.card.service.ISharingAccountMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class CardConsumeCreateTask {

    /**
     *
     */
    @Autowired
    ISharingAccountMessageService iSharingAccountMessageService;

    @Scheduled(cron = "0/30 * * * * ?")
    @Async
    public void  createConsumeMessage(){

        iSharingAccountMessageService.checkSharing();
    }

}
